interface responseData {
  code: number,
  ok: boolean,
  message: string
}


export interface Attr {
  attrId: number | string,
  valueId: number | string,
  valueName?: string,
  attrName?: string,
  skuId?: number | string,
  id?: number | string,
}
export interface saleAttr {
  saleAttrId: number | string,
  saleAttrValueId: number | string
  createTime?: string,
  id?: string | number,
  saleAttrName?: string,
  saleAttrValueName?: string,
  skuId?: string | number,
  spuId?: string | number,
  updateTime?: string
}
export interface imgAttr {
	id?: string | number;
	createTime?: string;
	updateTime?: string;
	skuId?: string | number;
	imgName: string;
	imgUrl: string;
	spuImgId?: string | number;
	isDefault: string;
}
export interface skuData {
  category3Id?: string | number,
  spuId?: string | number,
  tmId?: string | number,
  id?: string | number,
  skuName?: string,
  isSale?: number,
  price?: string | number,
  weight?: string | number,
  skuDesc?: string,
  skuAttrValueList?: Attr[],
  skuSaleAttrValueList?: saleAttr[],
  skuImageList?: imgAttr[],
  skuDefaultImg?: string
}

// 获取sku接口返回的数据类型
export interface skuResponseDataType extends responseData {
  data: {
    records: skuData[],
    total: number,
    size: number,
    current: number,
    orders: [],
    pages: number,
    optimizeCountSpl: boolean,
    searchCount: boolean,
    hitCount: boolean,
    countId: null,
    maxLimit: null,
  }
}

// 获取sku商品详情接口ts类型
export interface skuInfoData extends responseData {
  data: skuData
}